package br.com.fotoxbh.geracao;
import com.googlecode.javacv.FFmpegFrameRecorder;
import com.googlecode.javacv.FrameRecorder;
import com.googlecode.javacv.FrameRecorder.Exception;

  
public class FrameAccess {   
  
	public static void main (String[] args) throws Exception, InterruptedException {
		 FrameRecorder recorder = FFmpegFrameRecorder.createDefault("c:\\temp\\out.avi", 640, 480);
//		 	recorder.setCodecID(CODEC_ID_MPEG4);
//		    recorder.setPixelFormat(PIX_FMT_YUV420P);
		    recorder.start();
		    //recorder.record(arg0);
		    Thread.sleep(10000);  
		    recorder.stop();
	}
}